package com.mask.im.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mask.im.business.model.dto.AdminGroupChatMessageDTO;
import com.mask.im.business.common.model.PageResult;
import com.mask.im.business.common.model.RestResponse;
import com.mask.im.business.model.dto.FriendSendMessageDTO;
import com.mask.im.business.model.dto.GroupSendMessageDTO;
import com.mask.im.business.model.entity.chat.IMFriendChatMessageDO;
import com.mask.im.business.model.entity.chat.IMGroupChatMessageDO;


/**
 * 群聊记录管理
 *
 * @author jian
 */
public interface IMGroupChatMessageService extends IService<IMGroupChatMessageDO> {

    RestResponse<?> getGroupChatMessage(Long groupChatId);

    RestResponse<String> clearGroupChatMessage(Long groupChatId);

    PageResult<AdminGroupChatMessageDTO> groupChatMessage(String createTime, String groupChatName);

    /**
     * 群组发送消息
     * @param sendMessageDTO
     * @return
     */
    RestResponse<IMGroupChatMessageDO> sendMessage(GroupSendMessageDTO sendMessageDTO);
}

